package com.lbc.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author xyl
 * @date 2021-03-22 19:32
 */
@Data
public class AdminAddUserDTO {
    @ApiModelProperty(value = "用户名",required = true)
    @NotBlank(message = "用户名不能为空!")
    private String username;

    @ApiModelProperty(value = "邮箱",required = true)
    @NotBlank(message = "邮箱不能为空!")
    private String email;

    @ApiModelProperty(value = "密码",required = true)
    @NotBlank(message = "密码不能为空!")
    private String password;

    @ApiModelProperty(value = "关联的角色id",required = true)
    @Max(value = 4,message = "roleId范围有误")
    @Min(value = 3,message = "roleId范围有误")
    private Integer roleId;
}
